﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;

namespace HanGu.Services.Interface
{
    [ServiceContract(Name = "PhilosopherBema", Namespace = "http://www.haigu.com/")]
    public interface IPhilosopherBema
    {
        [OperationContract]
        List<PhilosopherBema> GetAll();
        [OperationContract]
        List<PhilosopherBema> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        List<VBemaLecturerInfo> GetAllAndLecturer(UniversallySearchParam searchparma);
        [OperationContract]
        PhilosopherBema GetByID(int id);
        /// <summary>
        /// 根据类型获取第一个 classType[1:精彩推荐,2:正在进行,3:安排]
        /// </summary>
        /// <param name="classType">1:精彩推荐,2:正在进行,3:安排</param>
        /// <returns></returns>
        [OperationContract]
        PhilosopherBema GetByClassType(int classType);
        /// <summary>
        /// 根据类型获取第一个 classType[1:精彩推荐,2:正在进行,3:安排]
        /// </summary>
        /// <param name="classType">1:精彩推荐,2:正在进行,3:安排</param>
        /// <returns></returns>
        [OperationContract]
        VBemaLecturerInfo GetAndLecturerByClassType(int classType);

        [OperationContract]
        VBemaLecturerInfo GetAndLecturerByID(int id);
        [OperationContract]
        VBemaLecturerInfo GetForIndex();
        [OperationContract]
        List<VBemaLecturerInfo> GetForTop(UniversallySearchParam searchparma);
        [OperationContract]
        bool Add(PhilosopherBema model);
        [OperationContract]
        bool Update(PhilosopherBema model);
        [OperationContract]
        bool Delete(int  id);
        
    }
}
